package com.bjpowernode.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MyController {

	@RequestMapping("/boot/test")
	public @ResponseBody
	Object test() {
		return "test..........";
	}

	@RequestMapping("/boot/page")
	public Object page(Model model) {
		model.addAttribute("msg", "springboot源码");
		return "index";
	}
}